﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Designer.Event.UI
{
    public class UIOpenSolutionEvent : UIEvent
    {
        public bool IsSuccess { get; set; }

        public string ErrMessage { get; set; }

        public int OpenTag { get; set; }

        public Designtime.Metadata.Solution Solution { get; set; }

        public UIOpenSolutionEvent(bool isSuccess, Designtime.Metadata.Solution solution,int openTag=0)
        {
            IsSuccess = isSuccess;
            Solution = solution;
            OpenTag = openTag;
        }
        public UIOpenSolutionEvent(bool isSuccess, Designtime.Metadata.Solution solution, string errMessage)
        {
            IsSuccess = isSuccess;
            Solution = solution;
            ErrMessage = errMessage;
        }
    }
}
